export const validateTime= (TimeFrom,TimeTo)=>{
    if(TimeFrom.length!=0&&TimeTo!=0){
        if (TimeFrom>TimeTo) {
            return "日期从需要小于日期至";
        }
    }
  }
 